package com.sky.mapper.user;

import com.sky.pojo.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {
    @Select("select * from user where openid=#{openId}")
    User selectByOpenId(String openId);

    void save(User user);

    User getById(Long id);

    @Delete("delete from user where id=#{id}")
    void deleteById(Long id);
}